package com.aoip.telemetry.telemetry.entity.waga;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author chenbai
 * @version 1.0
 * @Description TODO
 * @date 2022/4/30 16:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("waga_definition")
@ApiModel(description = "闸门监测数据信息表")
public class AttWagaExtEntity implements Serializable {
    private static final long serialVersionUID = 5777541332201429655L;
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("闸门id")
    private Long id;

    @TableField(value = "waga_code")
    @ApiModelProperty("闸门编码")
    private String wagaCode;

    @TableField(value = "waga_pssw")
    @ApiModelProperty("坡上水位")
    private long wagaPssw;

    @TableField(value = "waga_xysw")
    @ApiModelProperty("下游水位")
    private long wagaXysw;


    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
